class SceneManager extends egret.Sprite {

    private static _ins: SceneManager;
    public static get instance(): SceneManager {
        return this._ins || (this._ins = new SceneManager());
    }
    constructor() {
        super();
        SceneManager._ins = this;
        this.init();
    }

    public static menuScene: string = "menuScene";
    public static gameScene: string = "gameScene";
    private menuScene: MenuScene;
    private gameScene: GameScene;

    private init(): void {
        this.menuScene = new MenuScene();
        this.gameScene = new GameScene();
        this.addChild(this.menuScene);
    }

    public changeScene(type: string): void {
        this.removeChildren();
        this.addChild(this[type]);
    }



}